﻿@{
    var listUsers = (System.Collections.IEnumerable)ViewBag.Users;
    ViewBag.Title = "AdminPage";
}
 
<h2>List of users</h2>
@using (Html.BeginForm())
{
    <div>
        <ul>
            @foreach(var user in listUsers)
            {
                <li>
                    @Html.Partial("_User", user)
                    @Html.ActionLink("Delete","DeleteUser","Admin")
                </li>
            }
        </ul>
    </div>
}
